package com.wiz.data.vo.to;

import java.nio.charset.Charset;

/**
 * 普通域
 * @author Hakeny
 */
public class MessageStringFiled extends MessageFiled {

	@Override
	public byte[] toBytes() {
		return ((String)value).getBytes(Charset.forName("UTF-8"));
	}

	@Override
	protected Object clone() throws CloneNotSupportedException {
		MessageStringFiled filed = (MessageStringFiled) super.clone();
		filed.setType(this.type);
//		filed.setValue(this.value);
		filed.setNeedLength(this.needLength);
		return filed;
	}
}
